﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.SaveComponentAs.CCoSaveComponentAsNewPrototypeCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Resources;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.SaveComponentAs;

public class CCoSaveComponentAsNewPrototypeCmd : TxButtonCommand
{
  private CApSaveComponentAsCmdEnabler m_cmdEnabler;

  public CCoSaveComponentAsNewPrototypeCmd()
  {
    this.m_cmdEnabler = new CApSaveComponentAsCmdEnabler();
  }

  public virtual void Execute(object cmdParams)
  {
    new CApSaveComponentAsNewPrototypeLogic().Execute();
  }

  private ResourceManager GetResourceManager()
  {
    return new ResourceManager("DnProcessSimulateCommands.StringTable", ((object) this).GetType().Assembly);
  }

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_cmdEnabler;

  public virtual string Bitmap => "SaveComponentAs.Resources.bmpSaveNewCompAs.bmp";

  public virtual string LargeBitmap => "SaveComponentAs.Resources.bmpSaveNewCompAs_LARGE.png";

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("SaveComponentAs");

  public virtual string Category
  {
    get => this.GetResourceManager().GetString("SAVE_NEW_COMPONENT_AS_CMD_CATEGORY");
  }

  public virtual string Description
  {
    get => this.GetResourceManager().GetString("SAVE_NEW_COMPONENT_AS_CMD_DESCRIPTION");
  }

  public virtual string Name
  {
    get => this.GetResourceManager().GetString("SAVE_NEW_COMPONENT_AS_CMD_NAME");
  }

  public virtual string Tooltip
  {
    get => this.GetResourceManager().GetString("SAVE_NEW_COMPONENT_AS_CMD_TOOLTIP");
  }
}
